package com.zzy.mccjt.interfaces.system;

import com.github.pagehelper.PageInfo;
import com.zzy.mccjt.service.common.framework.response.WebApiResponse;
import com.zzy.pojo.system.login.UserDTO;
import com.zzy.pojo.system.login.UserPageDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * description:
 *
 * @author zzy
 * @version 1.0
 * @date 2020/1/3
 */
@FeignClient(value = "springcloud-app-system", contextId = "MccjtAppUserSystemInterface")
public interface MccjtAppUserSystemInterface {

    String MAPPING = "/system/user";

    /**
     * 获取用户信息
     * @param
     * @return
     */
    @GetMapping(value = MAPPING +"/getUserInfo")
    @ApiOperation(value = "获取用户信息")
    WebApiResponse<UserDTO> getUserInfo();

    /**
     * 获取用户信息
     * @param
     * @return
     */
    @PostMapping(value = MAPPING +"/getPageList")
    @ApiOperation(value = "获取用户信息")
    WebApiResponse<PageInfo<UserDTO>> getPageList( UserPageDTO dto);

}
